package com.feicheng.persistence.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feicheng.persistence.entity.DepositRecord;
import com.feicheng.persistence.mapper.DepositRecordMapper;
import com.feicheng.persistence.model.ClientDepositPlus;
import com.feicheng.persistence.model.DepositRecordMain;
import com.feicheng.persistence.service.IDepositRecordService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-14
 */
@Service
public class DepositRecordServiceImpl extends ServiceImpl<DepositRecordMapper, DepositRecord> implements IDepositRecordService {

    @Override
    public Page<DepositRecordMain> getDepositRecordService(Page<DepositRecordMain> page, QueryWrapper<DepositRecordMain> wrapper) {
        return this.getBaseMapper().getDepositRecordMapper(page, wrapper);
    }


    @Override
    public Integer getDepositBackAmount(QueryWrapper<DepositRecord> wrapper) {
        return this.getBaseMapper().getDepositBackAmount(wrapper);
    }

    @Override
    public List<DepositRecordMain> searchWithPayment(QueryWrapper<DepositRecordMain> wrapper) {
        return this.getBaseMapper().searchWithPayment(wrapper);
    }


    @Override
    public Integer getAmountService(QueryWrapper<DepositRecordMain> wrapper) {
        return this.getBaseMapper().getAmountMapper(wrapper);
    }


	@Override
	public List<ClientDepositPlus> getClientDepositPlus(QueryWrapper<ClientDepositPlus> wrapper) {
		return this.getBaseMapper().getClientDepositPlus(wrapper);
	}


	@Override
	public Page<ClientDepositPlus> getClientDepositPlusByPage(Page<ClientDepositPlus> page,
			QueryWrapper<ClientDepositPlus> wrapper) {
		return this.getBaseMapper().getClientDepositPlusByPage(page, wrapper);
	}

}
